package com.lanchetech.user.service;


import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.CoinOrderResp;
import com.lanchetech.bean.response.CoinProductResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.vo.CoinProductVO;
import com.lanchetech.entity.CoinOrder;
import com.lanchetech.entity.User;
import org.springframework.web.bind.annotation.RequestBody;

public interface CoinService {

    ResultData<BasePageResp<CoinProductResp>> getCoinProductPage(PageReq req);

    ResultData<CoinProductVO> getCoinProductDetail(User user, Long id);

    ResultData<Boolean> createCoinOrder(User user, CoinOrder coinOrder);

    ResultData<BasePageResp<CoinOrderResp>> getCoinOrderPage(User user, PageReq req);

    ResultData<CoinOrderResp> getCoinOrderDetail(Long id);
}